﻿/** 
 * Copyright / Licence
 * <p>
 * You are free:
 * <li>to Share — to copy, distribute and transmit the work
 * <li>to Remix — to adapt the work
 * </p>
 * <p>
 * Under the following conditions:
 * <li>Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
 * <li>Noncommercial — You may not use this work for commercial purposes.
 * <li>Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.
 * </p>
 * <p>
 * More information can be found here:
 * <br/>
 * http://creativecommons.org/licenses/by-nc-sa/3.0/
 * </p>
 * <p>
 * Please contact Manfred Weber [manfred.weber@gmail.com] if you require a commercial licence
 * </p>
 */
 package org.dschini.data.ui.maps.world {
	
	import org.dschini.utils.*;
	import org.dschini.data.ui.maps.*;
	import org.dschini.data.ui.maps.world.asia.*;
	
	public class AsiaMapData extends MapData
	{
		public var nepalMapData:NepalMapData;
		public var eastRussiaMapData:EastRussiaMapData;
		public var northKoreaMapData:NorthKoreaMapData;
		public var southKoreaMapData:SouthKoreaMapData;
		public var japanMapData:JapanMapData;
		public var taiwanMapData:TaiwanMapData;
		public var philippinesMapData:PhilippinesMapData;
		public var indonesiaMapData:IndonesiaMapData;
		public var vietnamMapData:VietnamMapData;
		public var sriLankaMapData:SriLankaMapData;
		public var indiaMapData:IndiaMapData;
		public var jammuAndKashmirMapData:JammuAndKashmirMapData;
		public var bhutanMapData:BhutanMapData;
		public var bangladeshMapData:BangladeshMapData;
		public var thailandMapData:ThailandMapData;
		public var malaysiaMapData:MalaysiaMapData;
		public var cambodiaMapData:CambodiaMapData;
		public var burmaMapData:BurmaMapData;
		public var laosMapData:LaosMapData;
		public var chinaMapData:ChinaMapData;
		public var mongoliaMapData:MongoliaMapData;
		public var eastKazakhstanMapData:EastKazakhstanMapData;
		public var yemenMapData:YemenMapData;
		public var cyprusMapData:CyprusMapData;
		public var omanMapData:OmanMapData;
		public var unitedArabEmiratesMapData:UnitedArabEmiratesMapData;
		public var kuwaitMapData:KuwaitMapData;
		public var saudiArabiaMapData:SaudiArabiaMapData;
		public var kyrgyzstanMapData:KyrgyzstanMapData;
		public var uzbekistanMapData:UzbekistanMapData;
		public var tajikistanMapData:TajikistanMapData;
		public var pakistanMapData:PakistanMapData;
		public var afghanistanMapData:AfghanistanMapData;
		public var turkmenistanMapData:TurkmenistanMapData;
		public var iranMapData:IranMapData;
		public var iraqMapData:IraqMapData;
		public var nakhchivanMapData:NakhchivanMapData;
		public var armeniaMapData:ArmeniaMapData;
		public var azerbaijanMapData:AzerbaijanMapData;
		public var georgiaMapData:GeorgiaMapData;
		public var gazaStripMapData:GazaStripMapData;
		public var westBankMapData:WestBankMapData;
		public var syriaMapData:SyriaMapData;
		public var israelMapData:IsraelMapData;
		public var lebanonMapData:LebanonMapData;
		public var jordanMapData:JordanMapData;
		public var eastTurkeyMapData:EastTurkeyMapData;
	
		public function AsiaMapData():void
		{
			_title = "<undefined>";
			locationData = new ExtendedArray();
			countries = new Array();
			backgroundVisible = false;
			countryLinesVisible = true;
			shapeVisible = true;
			
			nepalMapData = new NepalMapData();
			eastRussiaMapData = new EastRussiaMapData();
			northKoreaMapData = new NorthKoreaMapData();
			southKoreaMapData = new SouthKoreaMapData();
			japanMapData = new JapanMapData();
			taiwanMapData = new TaiwanMapData();
			philippinesMapData = new PhilippinesMapData();
			indonesiaMapData = new IndonesiaMapData();
			vietnamMapData = new VietnamMapData();
			sriLankaMapData = new SriLankaMapData();
			indiaMapData = new IndiaMapData();
			jammuAndKashmirMapData = new JammuAndKashmirMapData();
			bhutanMapData = new BhutanMapData();
			bangladeshMapData = new BangladeshMapData();
			thailandMapData = new ThailandMapData();
			malaysiaMapData = new MalaysiaMapData();
			cambodiaMapData = new CambodiaMapData();
			burmaMapData = new BurmaMapData();
			laosMapData = new LaosMapData();
			chinaMapData = new ChinaMapData();
			mongoliaMapData = new MongoliaMapData();
			eastKazakhstanMapData = new EastKazakhstanMapData();
			yemenMapData = new YemenMapData();
			cyprusMapData = new CyprusMapData();
			omanMapData = new OmanMapData();
			unitedArabEmiratesMapData = new UnitedArabEmiratesMapData();
			kuwaitMapData = new KuwaitMapData();
			saudiArabiaMapData = new SaudiArabiaMapData();
			kyrgyzstanMapData = new KyrgyzstanMapData();
			uzbekistanMapData = new UzbekistanMapData();
			tajikistanMapData = new TajikistanMapData();
			pakistanMapData = new PakistanMapData();
			afghanistanMapData = new AfghanistanMapData();
			turkmenistanMapData = new TurkmenistanMapData();
			iranMapData = new IranMapData();
			iraqMapData = new IraqMapData();
			nakhchivanMapData = new NakhchivanMapData();
			armeniaMapData = new ArmeniaMapData();
			azerbaijanMapData = new AzerbaijanMapData();
			georgiaMapData = new GeorgiaMapData();
			gazaStripMapData = new GazaStripMapData();
			westBankMapData = new WestBankMapData();
			syriaMapData = new SyriaMapData();
			israelMapData = new IsraelMapData();
			lebanonMapData = new LebanonMapData();
			jordanMapData = new JordanMapData();
			eastTurkeyMapData = new EastTurkeyMapData();
			
			countries = [
				nepalMapData,
				eastRussiaMapData,
				northKoreaMapData,
				southKoreaMapData,
				japanMapData,
				taiwanMapData,
				philippinesMapData,
				indonesiaMapData,
				vietnamMapData,
				sriLankaMapData,
				indiaMapData,
				jammuAndKashmirMapData,
				bhutanMapData,
				bangladeshMapData,
				thailandMapData,
				malaysiaMapData,
				cambodiaMapData,
				burmaMapData,
				laosMapData,
				chinaMapData,
				mongoliaMapData,
				eastKazakhstanMapData,
				yemenMapData,
				cyprusMapData,
				omanMapData,
				unitedArabEmiratesMapData,
				kuwaitMapData,
				saudiArabiaMapData,
				kyrgyzstanMapData,
				uzbekistanMapData,
				tajikistanMapData,
				pakistanMapData,
				afghanistanMapData,
				turkmenistanMapData,
				iranMapData,
				iraqMapData,
				nakhchivanMapData,
				armeniaMapData,
				azerbaijanMapData,
				georgiaMapData,
				gazaStripMapData,
				westBankMapData,
				syriaMapData,
				israelMapData,
				lebanonMapData,
				jordanMapData,
				eastTurkeyMapData
			]
		}
		
		override public function set lang( lang:String ):void
		{
			_lang = lang;
			switch( _lang ){
				case "en":
					_title = "Asia";
					break;
				case "de":
					_title = "Asien";
					break;
			}
			var i:int;
			for(i=0; i<countries.length; i++){
				MapData(countries[i]).lang = lang;
			}
			for(i=0; i<locationData.length; i++){
				MapLocationData(locationData[i]).lang = lang;
			}
		}
	}
}
